﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.Plugins;
using System.Web.Mvc;
using System.Web.Routing;
using MethodWorx.CMS.Content;

namespace MethodWorx.CMS.Administration
{
    public class WebFormsApplicationTypeUrlRoutingIdeExtension : Controller
    {
        private IdeExtension extension;

        public WebFormsApplicationTypeUrlRoutingIdeExtension(IdeExtension extension)
        {
            this.extension = extension;
        }

        public ActionResult Invoke(PageTemplate instance)
        {
            return new EmbeddedViewResult(this.extension.WebEditor, instance);
        }
    }
}
